import React, { Component } from 'react'

// 传递数据的context和接收数据的context对象必须是同一个对象
import context from './context'
export default class Son extends Component {
  render() {
    return (
      <context.Consumer>
        {(data) => {
          return <div>Son,{data}</div>
        }}
      </context.Consumer>
    )
  }
}
